package com.mc.book.dao;

import com.mc.book.pojo.request.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookDao {
    List<RequestBook> getBookByNamePage(@Param("book_name")String book_name);
    List<RequestBookCategory> getBookCategory();

    List<RequestBook> getBookByCategoryPage(@Param("category_id") Integer id);


    RequestBook getBookById(@Param("id")Integer id);

    List<RequestBook> queryBookIndexPage(@Param("book_id")Integer book_id);

    RequestBookContent queryBookContent(@Param("index_id")Integer index_id);

    List<RequestBook> selectBookList(RequestBook book);

    Boolean userUploadBook(RequestUserUploadBook request);
}
